package Assignment;
/*
请编写程序，分别定义8种基本数据类型的变量，并打印变量的值。
 */
public class Test9 {
    public static void main(String[] args) {
        //整数型
        byte b = 10;
        short s = 20;
        int i = 30;
        long l = 999999999999L;

        //浮点数
        float f = 3.14F;
        double d = 520.1;

        //字符
        char c = 'w';

        //布尔型
        boolean bool = true;

        System.out.println("byte:"+b);
        System.out.println("short:"+s);
        System.out.println("int:"+i);
        System.out.println("long:"+l);
        System.out.println("float:"+f);
        System.out.println("double:"+d);
        System.out.println("char:"+c);
        System.out.println("bool:"+bool);


    }
}
